#include <pthread.h>
#include "BlockQueue.h"

void * Conusumer(void * arg)
{
  auto bq = (BlockQueue<int>*)arg;
  while(ture){
    int data = 0;
    bq->
  }
}

void* Producter(void * arg)
{
  auto bq = (BlockQueue<int>*)arg;
  while(true){
    int data = rand()%100 + 1;
    bq->Push(data);//
  }
}

int main()
{
  BlockQueue<int> *bq = new BlockQueue<int>();

  pthread_t c, p;
  pthread_create(&c, nullptr, Conusumer, bq);
  pthread_create(&c, nullptr, Producter, bq);

  pthread_join(c, nullptr);
  pthread_join(p, nullptr);

  return 0;

}
